<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>修改品牌</title>
    <style>
        *{
            margin: 0 auto;
        }
        h3{
            text-align: center;
            border: 2px solid black;
            padding-left: 20px;
            width: 580px;
            height: 50px;
            border-bottom: none;
            font-size: 30px;
            background-color: darkseagreen;
        }

        .biao1{
            width: 500px;
            height: 480px;
            line-height: 58px;
            padding-left: 100px;
            padding-top: 10px;
            border: 2px solid black;
            border-top: none;
            font-size: 20px;
            background-color: ivory;
        }

        .an1{
            height: 40px;
            width: 300px;
            background-color: darkseagreen;
            border-radius: 20px;
            font-size:15px;
        }
    </style>
</head>
<body>
<h3>修改品牌</h3>
<form action="${ctx}/Update" method="post" class="biao1">
    <input type="hidden" name="id" value="${brand.id}">
    品牌名称：<input name="brandName" value="${brand.brandName}"><br>
    企业名称：<input name="companyName" value="${brand.companyName}"><br>
    排序：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="ordered" value="${brand.ordered}"><br>
    描述信息：<textarea rows="5" cols="20" name="description">${brand.description}</textarea><br>
    状态：
    <c:if test="${brand.status == 0}">
        <input type="radio" name="status" value="0" checked>禁用
        <input type="radio" name="status" value="1">启用<br>
    </c:if>
    <c:if test="${brand.status == 1}">
        <input type="radio" name="status" value="0" >禁用
        <input type="radio" name="status" value="1" checked>启用<br>
    </c:if>
    <input type="submit" value="提交" class="an1">
</form>
</body>
</html>
